﻿using System;
using System.Collections.Generic;
using System.Runtime.Serialization;
using System.Text;

namespace T.FAS.Runtime.Metadata.Entity
{
    [DataContract]
    [Serializable]
    public class MetaDataManageInfo: System.ICloneable
    {
        /// <summary>
        /// ID
        /// </summary>
        [DataMember]
        public string ID { get; set; }
        
        [DataMember]
        public string MetadataID { get; set; }
        [DataMember]
        public string MetadataCode { get; set; }

        [DataMember]
        public string MetaDataTypeID { get; set; }

        [DataMember]
        public string KeyAppId { get; set; }

        [DataMember]
        public string ModuleID { get; set; }

        [DataMember]
        public string KeyAppName { get; set; }

        [DataMember]
        public string ModuleName { get; set; }
        [DataMember]
        public string FuncID { get; set; }
        [DataMember]
        public string FuncName { get; set; }

        /// <summary>
        /// 重要程度
        /// </summary>
        [DataMember]
        public MetaDataImportance Importance { get; set; }

        [DataMember]
        public string Tag { get; set; }

        /// <summary>
        /// 是否删除
        /// </summary>
        [DataMember]
        public bool IsDeleted { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [DataMember]
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 创建者
        /// </summary>
        [DataMember]
        public string Creator { get; set; }

        /// <summary>
        /// 最后修改时间
        /// </summary>
        [DataMember]
        public DateTime LastModifyTime { get; set; }

        /// <summary>
        /// 最后修改者
        /// </summary>
        [DataMember]
        public string LastModifier { get; set; }
        /// <summary>
        /// 分支标识
        /// </summary>
        [DataMember]
        public string ProjectBranchID { get; set; }

        public object Clone()
        {
            return this.MemberwiseClone();
        }
    }
}
